package com.luoran.bartalks.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.luoran.bartalks.dao.IBtOperationLogDao;
import com.luoran.bartalks.entity.biz.BtOperationLog;
import com.luoran.bartalks.service.IBtOperationLogService;

@Service
public class BtOperationLogService implements IBtOperationLogService {

	@Autowired
	private IBtOperationLogDao operationLogDao;

	@Override
	public void saveOperationRecord(String userId, String nick, String companyId, Integer operationType) {

		BtOperationLog operationLog = new BtOperationLog();

		operationLog.setOperatorId(userId);
		operationLog.setOperator(nick);
		operationLog.setCompanyId(companyId);
		operationLog.setOperationType(operationType);
		operationLog.setOperateDate(new Date());

		// 保存操作记录
		operationLogDao.insertTemplate(operationLog);

	}

}
